package com.darren.architect_day06.visitor;

/**
 * Created by CCJK on 2018/12/1.
 */

public class User implements Element {
    private String name;
    private int age;
    private int height;

    @Override
    public void accept(Visitor visitor) {
        visitor.visitAge(age);
        visitor.visitName(name);
    }
}
